package com.hu.zhcc.shiro.controller.dingming;

import com.hu.zhcc.shiro.entity.dingming.TMember_D;
import com.hu.zhcc.shiro.service.dingming.TMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController("com.hu.zhcc.shiro.service.dingming.TMemberService")
@RequestMapping("/tMember")

public class TMemberController {
    @Autowired
    private TMemberService tMemberService;

    /**
     * 在添加预约时建议人
     */
    @PostMapping("")
    public ResponseEntity<List<TMember_D>> listTMember(){
        return ResponseEntity.ok(tMemberService.listTMember());
    }
}
